﻿using System;
using Plugins.UserControls;
using Utils;

namespace TimeBarPlugin.Realtime
{
	[Serializable]
	internal class EngineSettings : EngineSettingsBase, ICopyable<EngineSettings>, ICloneable<EngineSettings>
	{
		#region Public Methods

		public EngineSettings(StockSelectorData stockSelectionOptions, HourSelectorData hourOptions, StrategyControlData customOptions, StockParametersSelectorData stockParameters) : base(customOptions, hourOptions, stockSelectionOptions, stockParameters)
		{
		}

		#endregion

		#region ICopyable

		public void Copy(EngineSettings source)
		{
			base.Copy(source);
		}

		#endregion 

		#region ICloneable

		public new EngineSettings Clone()
		{
			return new EngineSettings(_stockSelectionOptions.Clone(), _hourOptions.Clone(), _customOptions.Clone(), _stockParameters.Clone());
		}

		#endregion
	}
}
